package com.czz.manage.client;

import com.czz.common.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @ClassName: OssClient
 * @Author Czz
 * @Date 2020/1/31
 * @Time 17:38
 **/
@Component
@FeignClient(value = "education-oss")
public interface OssClient {

    @DeleteMapping(value = "/teacher/file/delete/{docUrl}")
    R deleteOssFile(@PathVariable("docUrl") String docUrl);

    @DeleteMapping(value = "/teacher/file/delete-batch")
    R deleteOssFileBatch(@RequestBody List<String> files);
}
